Versions:
WSL Disk Shrinker 0.2.2, released by Believers in Science Studio as the fourth iteration of the utility, is a lightweight Windows application engineered to reclaim wasted space from virtual disks used by Windows Subsystem for Linux distributions. Because WSL2 stores its entire Linux filesystem inside an automatically expanding virtual hard disk (ext4.vhdx), the file can grow significantly during normal use yet never contracts when data are deleted, gradually consuming large portions of the host drive. The program automates the otherwise manual sequence of shutting down all running WSL instances, invoking the Windows diskpart utility to mount the virtual disk in read-only compact mode, and triggering a VHDX optimization pass that rewrites only the occupied blocks, thereby shrinking the footprint without touching user data. Typical use cases include developers who frequently install and remove Docker images, build dependencies, or language toolchains inside WSL, students cycling through multiple Linux course environments, and CI servers that spawn ephemeral WSL instances for testing, all scenarios where the virtual disk can bloat by tens of gigabytes. The tool presents a minimal GUI listing installed distributions with their current size, offers a one-click “Shrink” button, and displays a progress log extracted from diskpart, making the housekeeping task accessible to users who prefer not to type PowerShell commands. Published under the System Utilities / Disk Management category, version 0.2.2 refines error handling for multi-disk setups and adds a confirmation prompt before shutting down active sessions. WSL Disk Shrinker is available for free on get.nero.com, with downloads provided via trusted Windows package sources such as winget, always delivering the latest version, and supporting batch installation of multiple applications.
Tags: